/**
 * Created by xaiodoudou on 2017/12/12.
 */
const mysql = require('mysql');
module.exports = function (sql,zhi,callback){
  var config = mysql.createConnection({
    host:"localhost",
    user:"root",
    password:"root",
    port:"3306",
    database:"bolg.myyutang.cn"
  });
  config.connect();
  /*   config.query(sql,zhi,(err,data) => {
   callback&&callback(err,data);
   });*/
  config.query(sql,zhi,function (err,data) {
    callback&&callback(err,data);
  })
  config.end();
};